<template>
  <div>
    <van-swipe class="my-swipe"  :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="item of banner" :key="item._id">
        <img :src="item.imageUrl" alt="" />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>
 
<script>
export default {
  data() {
    return {
      banner: [],
    };
  },
  methods: {},
  mounted() {
    this.$http("http://47.108.197.28:3000/banner").then((res) => {
      this.banner = res.data.banners;
    });
  },
};
</script> 
<style scoped>
.my-swipe .van-swipe-item>img {
  width: 100%
}
</style>